package com.yao.mssm.config;

import org.aspectj.lang.JoinPoint;
import org.springframework.stereotype.Component;

@Component
public class DataSourceInterceptor {
	
	public void setdataSourceOne(JoinPoint jp) {
		DynamicDataSourceHolder.setDataSource("dbmsSource");
	}
	
	public void setdataSourceTwo(JoinPoint jp) {
		DynamicDataSourceHolder.setDataSource("mssmSource");
	}

}
